import {defHttp} from '/@/utils/http/axios';

enum Api {
  loginfo = '/sys/loginfo',
  visitInfo = '/sys/visitInfo',
  queryMoneyStatistics = '/manageApi/statistics/queryMoneyStatistics',
  queryNumberStatistics = '/manageApi/statistics/queryNumberStatistics',
  queryPreItemGroupStatistics = '/manageApi/statistics/queryPreItemGroupStatistics',
  queryChartStatistics = '/manageApi/statistics/queryChartStatistics',
}
/**
 * 日志统计信息
 * @param params
 */
export const getLoginfo = (params) => defHttp.get({ url: Api.loginfo, params }, { isTransformResponse: false });
/**
 * 访问量信息
 * @param params
 */
export const getVisitInfo = (params) => defHttp.get({ url: Api.visitInfo, params }, { isTransformResponse: false });
/**
 * 查询资金统计
 * @param params
 */
export const queryMoneyStatistics = (params) => defHttp.get({ url: Api.queryMoneyStatistics, params }, { isTransformResponse: false });
/**
 * 查询总数统计
 * @param params
 */
export const queryNumberStatistics = (params) => defHttp.get({ url: Api.queryNumberStatistics, params }, { isTransformResponse: false });
/**
 * 查询预充值分组统计
 * @param params
 */
export const queryPreItemGroupStatistics = (params) => defHttp.get({ url: Api.queryPreItemGroupStatistics, params }, { isTransformResponse: false });
/**
 * 查询趋势统计
 * @param params
 */
export const queryChartStatistics = (params) => defHttp.get({ url: Api.queryChartStatistics, params }, { isTransformResponse: false });
